<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/11/7
  Time: 16:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/mb/jsp/common.jsp" %>
<%@ page import="com.wsu.search.tools.Tools" %>

<%
   //取得url带过来的参数
    String vrgoodsidVal = Tools.RmNull(request.getParameter("vrgoodsid"));
 
%>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>寄售趋势</title>

</head>
<body ontouchstart="">
<div class="detailTop pf w100 of">
    <div class="w100 of tc cf  flexBox">
     	<span class="db" onclick="javascript:history.back();"  style="height: 40px;"><img src="mb/images/top_back_white.png" style="width:40px"/></span>
      	<p class="f18 tc" style="width:54%;">寄售趋势</p>
      	<a href="mb/jsp/saleTrendChart.jsp?vrgoodsid=<%=vrgoodsidVal%>" style="margin-right: 4%;">
      		<img src="mb/images/icon_jishou_trend_top.png" alt="" class="db w100" style="width:25px;" >
      	</a>
    </div>
</div>
<div id="listContainer" class="container db jz mgt45 w100">
	<div class="mgt10 w95 jz of bcf">
		<section class="saleTab flexBox f15">
			<div class="flexCenter pr">
				<img src="mb/images/icon_jishou_trend_tip_green.png" alt="" class="db pa" style="height:64%;left:0;top:18%;" >
				<img src="mb/images/icon_jishou_sale.png" alt="" class="db pa" style="height:44%;left:10px;top:28%;" >
				数量
			</div>
			<div class="flexCenter">
				均价
			</div>
		</section>
		<section class="saleTab flexBox f13 b-t">
			<div class="pdl10 pr df cgreen">
				<span class="db mgl10">卖五</span>
			</div>
			<div class="flexCenter b-l">
				均价
			</div>
		</section>
		<section class="saleTab flexBox f13 b-t">
			<div class="pdl10 pr df cgreen">
				<span class="db mgl10">卖五</span>
			</div>
			<div class="flexCenter b-l">
				均价
			</div>
		</section>
	</div>
	
	<div class="mgt10 w95 jz of bcf">
		<section class="saleTab flexBox f15">
			<div class="flexCenter pr">
				<img src="mb/images/icon_jishou_trend_tip.png" alt="" class="db pa" style="height:64%;left:0;top:18%;" >
				<img src="mb/images/icon_jishou_buy.png" alt="" class="db pa" style="height:44%;left:10px;top:28%;" >
				数量
			</div>
			<div class="flexCenter">
				均价
			</div>
		</section>
		<section class="saleTab flexBox f13 b-t">
			<div class="pdl10 pr df cgreen">
				<span class="db mgl10">卖五</span>
			</div>
			<div class="flexCenter b-l">
				均价
			</div>
		</section>
		<section class="saleTab flexBox f13 b-t">
			<div class="pdl10 pr df cgreen">
				<span class="db mgl10">卖五</span>
			</div>
			<div class="flexCenter b-l">
				均价
			</div>
		</section>
	</div>
  	

</div>

<script>
	var typeVal = 0;/* 0出售 1购买 */ 
	
    $(document).ready(function(){
		
		getData();
	});

//加载新数据
function getData(){
	 $.ajax({
            url: "PlugServlet",
            data: JSON.stringify({m:3040,vrgoodsid:<%=vrgoodsidVal%>}),
            type: 'post',
            dataType: 'json',
            contentType: "application/json;charset=utf-8",
            beforeSend: function () {
                showProgressDg();
            },
            success: function (data) {
            console.log(data);
                if (data.state == 1) {
					
                } else {
                    // 其他错误弹出提示
                    showToast(data.info);
                }
            },
            error: function (data) {
                showToast(data.info);
            },
            complete: function () {
                closeProgressDg();
            }
        });

}

/*  function showData(list)
    {
    	var htmlStr="";
    	$.each(list, function(index, obj) 
    	{
    		htmlStr +='<section class="w100 b-b">'+
							'<div class="w92 jz mgt10 mgb10 df">'+
								'<div class="circle of" style="height: 54px;width:54px;"> '+
									'<img src="'+getBaseImgUrl(obj.avatar)+'" class="db w100 h100">'+	
								'</div>'+
								'<div class="mgl10" style="flex-grow: 2;">'+
									'<p class="c3 f15">'+obj.username+'<p>'+
									'<p class="c9 f14 mgt10">'+obj.time+'<p>'+
								'</div>'+
								'<div class="c3 f16"><span class="orange2">'+obj.level.substring(0,1)+'</span>'+obj.level.substring(1)+'</div>'+
							'</div>'+
						'</section>';
	    		   		
    	});
    	 $("#resText").after(htmlStr);
    	
    	
    } */

 
</script>

</body>
</html>
